package com.joysuch.wwyt.bp.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.joysuch.wwyt.common.entity.UserDataEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author zr
 * @since 2021-09-16
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("wwyt_bp_investigate_task_summary")
@ApiModel(value="BpInvestigateTaskSummary对象", description="检查任务和记录汇总")
public class BpInvestigateTaskSummary extends UserDataEntity {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.INPUT)
    private Long id;

    @ApiModelProperty(value = "用户Id")
    private Long userId;

    @ApiModelProperty(value = "排查人员")
    private String checkUserIds;

    @ApiModelProperty(value = "检查名称")
    private String checkName;

    @ApiModelProperty(value = "排查类型")
    private String checkType;

    @ApiModelProperty(value = "排查日期")
    private Date checkDate;

    @ApiModelProperty(value = "关联任务Id（排查表使用）")
    private Long taskId;

    @ApiModelProperty(value = "最后一个完成排查人")
    private Long checkCompleteUserId;

    @ApiModelProperty(value = "排查实际完成日期")
    private Date checkCompleteDate;

    @ApiModelProperty(value = "排查结果")
    private String checkResult;

    @ApiModelProperty(value = "排查状态")
    private String checkStatus;

    @ApiModelProperty(value = "异常处理结果")
    private String exceptionProcessResult;

    @ApiModelProperty(value = "是否有任务处理记录")
    private Boolean hasProcessRecord;


    @ApiModelProperty(value = "任务数")
    private int taskCount;

    @ApiModelProperty(value = "任务完成数")
    private int taskDoneCount;

    @ApiModelProperty(value = "未检数")
    private int uncheckCount;

    @ApiModelProperty(value = "逾期完成数")
    private int timeOutCheckCount;

    @ApiModelProperty(value = "发现异常数")
    private int exceptionCount;

    @ApiModelProperty(value = "数据来源1:风险管控，0:排查表")
    private Integer sourceType;

}
